package com.wmx.dubbocustomer.controller;

import com.wmx.dubbocustomer.service.OrderService;
import entity.resp.UserAddressResp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.constraints.NotEmpty;
import java.util.List;

/**********************************
 * @author wmx
 * @date 2019/11/4 17:14
 * @description:
 * @version 1.0
 ************************************/
@Validated
@RestController
@RequestMapping("/sys/order")
public class OrderController {
    @Autowired
    private OrderService orderService;
    @GetMapping("/query-address")
    public List<UserAddressResp> queryUserId( String userId){
        return orderService.queryUserAddressByUserId(userId);
    }


}
